<template>
    <div class="main">
        <div class="example_content" :class="{content_last:index==2||index==5}" >
            <div class="example_top">
                <div class="avater"><img :src="item.url" style="width:100%;height:100%"></div>
                <div class="example_name">{{item.name}}</div>
            </div>
            <div class="example_bottom">
                <div class="text_box"><div class="icon_img"><img src="../assets/location.png" style="width:100%" alt=""></div><div class="example_text">{{item.Address}}</div></div>
                <div class="text_box"><div class="icon_img"><img src="../assets/score.png" style="width:100%" alt=""></div><div class="example_text">{{item.num}}</div></div>
                <div class="text_box"><div class="icon_img2"><img src="../assets/subject.png" style="width:100%" alt=""></div><div class="example_text2">{{item.school}}</div></div>
                <div class="text_box"><div class="icon_img"><img src="../assets/read.png" style="width:100%" alt=""></div><div class="example_text">{{item.Profession}}</div></div>
            </div>
        </div>
    </div>
</template>
<script>
export default {
    props:{
        item:Object,
        index:Number
    }
}
</script>
<style scoped>
.example_content{
    width: 292px;
    height: 344px;
    box-shadow: 0px 15px 30px rgba(145, 145, 145, 0.15);
    margin-right: 40px;
    display: inline-block;
    margin-top:30px;
    border-radius: 10px;
    transition-duration: 0.5s;
}
.example_content:hover{
    transform: translateY(-6px);
    cursor: pointer;
    box-shadow: 0px 20px 35px rgba(145, 145, 145, 0.30);
}
.content_last{
    margin-right: 0px;
}
.example_top{
    width:230px;
    height: 130px;
    margin:0 auto;
    display: flex;
    flex-direction: row;
    margin-top:31px;
}
.avater{
    width: 130px;
    height: 130px;
    /* display: inline-block */
}
.example_name{
    /* display: inline-block; */
    width: 100px;
    height: 130px;
    font-size: 24px;
    font-family: Noto Sans SC;
    font-weight: 400;
    line-height: 41px;
    color: rgba(77, 77, 77, .8);
    display: flex;
    justify-content: center;
    align-items: center;
}
.example_bottom{
    height: 130px;
    width: 205px;
    margin-top: 23px;
    display: flex;
    flex-direction: column;
}
.example_text{
    font-size: 18px;
    font-family: Noto Sans SC;
    font-weight: 400;
    line-height: 31px;
    color: #4D4D4D;
    text-align: left;
    margin-left: 24px;
}
.example_text2{
    font-size: 18px;
    font-family: Noto Sans SC;
    font-weight: 400;
    line-height: 31px;
    color: #4D4D4D;
    text-align: left;
    margin-left: 17px;
}
.text_box{
    display: flex;
    flex-direction: row;
    margin-left: 25px;
    margin-top: 5px;
}
</style>